﻿using System.Reflection;

namespace Borg
{
    public class CancelExtensionEventArgs : ExtensionEventArgs, ICancelEventArgs
    {
        public bool Cancel { get; set; }

        public CancelExtensionEventArgs(ExtensionInfo extensionInfo, Assembly initiator)
            : base(extensionInfo, initiator)
        { }

        public CancelExtensionEventArgs(ExtensionTypeInfo extensionTypeInfo, Assembly initiator)
            : base(extensionTypeInfo, initiator)
        { }
    }

    public delegate void CancelExtensionEventHandler(object sender, CancelExtensionEventArgs args);
}

